package com.edu.jvm.unit01;

import java.io.IOException;
import java.util.Date;

/**
 * @author five-five
 * @date 2021/9/12
 */
public class ReturnAdressTest {
    public ReturnAdressTest() {
        //return
    }

    public boolean methodBoolean() {
        //ireturn
        return false;
    }

    public int methodInt() {
        //ireturn
        return 0;
    }

    public long methodLong() {
        //lreturn
        return 1l;
    }

    public short methodShort() {
        //ireturn
        return 0;
    }

    public char methodChar() {
        //ireturn
        return 'a';
    }

    public float methodFloat() {
        //freturn
        return 1f;
    }

    public double methodDouble() {
        //dreturn
        return 0.0d;
    }

    public String methodString() {
        //areturn
        return "13213223123";
    }

    public Date methodDate() {
        //areturn
        return new Date();
    }

    //return
    public void method2() {
        try {
            method1();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void method1() {
        int i = 1 / 0;
    }
}
